Skip to content

POC + WIP: Figure.pygmtlogo: Implement the hexagonal logo#4631

Draft
seisman wants to merge 7 commits into
pygmtlogo-wordmark-verticalfrom
pygmtlogo-hexagon
Draft

POC + WIP: Figure.pygmtlogo: Implement the hexagonal logo#4631
seisman wants to merge 7 commits into
pygmtlogo-wordmark-verticalfrom
pygmtlogo-hexagon

Conversation

@seisman
Copy link
Copy Markdown
Member

@seisman seisman commented May 9, 2026

Different designs for the hexagonal logo:

V1 V2 V3 V4 V5
logo-v0 logo-v1 logo-v2 logo-v3 logo-v3
Current version. Angle of diagonal line = 45 Angle of diagonal line = 30 Angle of diagonal line = 60 Remove diagonal lines Remove all lines

@seisman seisman marked this pull request as draft May 9, 2026 11:53
Base automatically changed from pygmtlogo-compass-angle to pygmtlogo May 9, 2026 13:27
@yvonnefroehlich
Copy link
Copy Markdown
Member

Different designs for the hexagonal logo:

Hmm, not sure about this. I think we should keep the compass lines consistent with the circle version. If the horizontal/vertical lines as well as diagonal lines are not orthogonal to each other anymore they do only make little sense in the context of a compass.

@seisman seisman force-pushed the pygmtlogo-hexagon branch from 22ba385 to 07bfe56 Compare May 13, 2026 09:30
@seisman seisman force-pushed the pygmtlogo-hexagon branch from 6c4a365 to 3d92d32 Compare May 14, 2026 02:54
@seisman
Copy link
Copy Markdown
Member Author

seisman commented May 14, 2026

We once had a discussion (#3849 (comment)) about the size of the hexagon outline, and it turns out there are many possible choices.
image

Clearly, the version where the r1 circle serves as the inscribed circle (the r0 - 0.3 one) is the simplest, since it requires no additional adjustments, except the length of the yellow compass lines and the offsets (maybe also font size) of the wordmark. I prefer this option because of its simplicity.

@yvonnefroehlich mentioned that

I would like to have exactly the same height and width (or at least the same aspect ratio) of the logo when the trademark is included, independent of the chosen shape.

I think that in practice, people are unlikely to display the circular and hexagonal logos side by side, so the difference in overall size does not matter much.

In 3d92d32, I've changed the shape size from (r0 + 0.34) * 2 to the more accuarate size (r0 + r1) / np.cos(np.deg2rad(30)).

The top post shows different versions of the hexagon logo with different compass-line designs. Here are my thoughts:

  • V5: The interior feels too empty without compass lines.
  • V4: Not bad. The yellow line can represent the equator. Or the red line and letter T represents N-S direction, while the yellow line represent the E-W direction.
  • V3: I don't like it. The yellow lines make the whole logo look like a lightning torch.
  • V2: The yellow lines are evenly distributed and symmetric. However, the two yellow lines at the bottom intersect with the red letter “T”, which is not ideal. As pointed out by @yvonnefroehlich "If the horizontal/vertical lines as well as diagonal lines are not orthogonal to each other anymore they do only make little sense in the context of a compass.". So this one is also not good.
  • V1: The current version. It is compatible with the circular logo, but the diagonal compass lines are not perpendicular to the edges of the hexagon outline, which I don’t like.

Personablly I like V4 for its simplicity, although I agree with @yvonnefroehlich that "we should keep the compass lines consistent with the circle version" if possible. But as I mentioned above "in practice, people are unlikely to display the circular and hexagonal logos side by side", and the main elements are unchanged between the circular and hexagonal logos.

@seisman seisman added this to the 0.19.0 milestone May 14, 2026
@seisman seisman added the enhancement Improving an existing feature label May 14, 2026
@seisman seisman changed the base branch from pygmtlogo to pygmtlogo-wordmark-vertical May 14, 2026 12:11
@seisman seisman deployed to pr-tests May 14, 2026 12:20 — with GitHub Actions Active
@github-actions
Copy link
Copy Markdown
Contributor

Summary of changed images

This is an auto-generated report of images that have changed on the DVC remote

Status Path
added pygmt/tests/baseline/test_pygmtlogo_design_hexagon-horizontal.png
added pygmt/tests/baseline/test_pygmtlogo_design_hexagon-vertical.png
added pygmt/tests/baseline/test_pygmtlogo_wordmark_horizontal_hexagon.png
added pygmt/tests/baseline/test_pygmtlogo_wordmark_none_hexagon.png
added pygmt/tests/baseline/test_pygmtlogo_wordmark_vertical_hexagon.png

Image diff(s)

Details

Added images

  • test_pygmtlogo_design_hexagon-horizontal.png

  • test_pygmtlogo_design_hexagon-vertical.png

  • test_pygmtlogo_wordmark_horizontal_hexagon.png

  • test_pygmtlogo_wordmark_none_hexagon.png

  • test_pygmtlogo_wordmark_vertical_hexagon.png

Modified images

Path Old New

Report last updated at commit 2f12fc5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improving an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants